<?php

namespace App\Http\Controllers\Api\V1\Resources;

use Illuminate\Http\Resources\Json\JsonResource;
use App\Models\ScenicDivination;
use App\Models\YaoDivination;
use Storage;

class UserDivinationRecordPicItemResource extends JsonResource
{
    public function toArray($request)
    {
    	$resource = $this->resource;
    	
       
        return [
        	'id' => (int)$resource->id,
	        'first_image'=>$resource->first_image,
            'second_image'=>$resource->second_image,
            'type'=>$resource->type,
            'pic_content'=>$resource->picContentRecords,
	        'created_at' => (string)$resource->created_at,
        ];
    }
}
